﻿using agsXMPP.protocol.client;

namespace Lapd.Common.CustomStanzas
{
    public class SddsIq: IQ
    {
        #region Samples stanzas

        /*
         * JOIN TO GROUP
         * -------------
         * <iq id="H7s84-4" to="serviceddsopenfire.statellite-w7" from="admin@statellite-w7" type="set">
	           <sdds xmlns="sddsopenfire">
		           <join group="HABITAT">
		           </join>
	           </sdds>
           </iq>
         */

        /*
         * WRITE ON TOPIC
         * --------------
         * <iq id="H7s84-7" to="serviceddsopenfire.statellite-w7" from="admin@statellite-w7" type="set">
               <sdds xmlns="sddsopenfire">
	               <write instancename="SampleTopic">
		               <samplefield datatype="long" value="1">
		               </samplefield>
		               <samplefield datatype="long" value="1">
		               </samplefield>
		               <samplefield datatype="string" value="temperature">
		               </samplefield>
		               <samplefield datatype="string" value="20.0">
		               </samplefield>
	               </write>
               </sdds>
           </iq>
         */

        /*
         * NEW
         * ----
            <iq id="H7s84-5" to="serviceddsopenfire.statellite-w7" from="admin@statellite-w7" type="set">
	            <sdds xmlns="sddsopenfire">
		            <new datatype="MoteSample.SampleTopic" instancename="SampleTopic">
		            </new>
	            </sdds>
            </iq>
         *
         */

        /*
         * LISTEN
         * ------
            <iq id="H7s84-6" to="serviceddsopenfire.statellite-w7" from="admin@statellite-w7" type="set">
	            <sdds xmlns="sddsopenfire">
		            <listen instancename="SampleTopic">
		            </listen>
	            </sdds>
            </iq>
         */

        #endregion

        public SddsIq(Sdds sdds) 
        {
            Query = sdds;
            GenerateId();
        }
    }
}
